package com.boco.blch.dispatcher.dao;


import com.boco.blch.dispatcher.po.CheckQuickResult;
import com.boco.blch.dispatcher.po.Device;
import com.boco.blch.dispatcher.po.compliant;
import com.boco.blch.dispatcher.po.compliant_Result;

import java.util.List;
import java.util.Map;

public interface BigDataDao {
	/**
	 * 根据传递的合规编号查询出合规项以及合规规范相关信息
	 * @param compliantnumber
	 * @param plantform 
	 * @return 返回compliant对象，包含了两个表的关联信息
	 */
	public compliant searchCompliant(Map<String, String> map);
	
	public List<compliant> getCompliantByCompName(Map<String, String> map);
	public List<compliant> getCompliantByCompNames(Map<String, String> map);
	/**
	 * 合规检查结果入库
	 * @param result
	 */
	public void saveResult(compliant_Result result);

	public String getPlantformName(Integer plantformId);
	
	public Device getDeviceById(Integer id);

	public Device getDeviceByIp(String ip);
	
	public CheckQuickResult getCheckQuickResultByTaskNo(String taskNo);
	
	public List<compliant_Result> getCompliantResultByTaskNo(String taskNo);
	
	public compliant getCompliantByCompliantResult(compliant_Result compliantresult);
	
	public void insertCheckQuickResult(CheckQuickResult checkquickresult);
	
	public void updateCheckQuickResult(CheckQuickResult checkquickresult);
	
	public String  getCompliantTypeById(Integer id);
	
	public List<Map<String, Object>> getDefaultCompliantTurn(String taskNo);
	
	public List<Map<String, Object>> getIP(String taskNo) ;
	//获取不合规内容
	public List<Map<String, Object>> getNoCompliantDetail(String taskNo) ;
	//获取合规内容
	public List<Map<String, Object>> getCompliantDetail(String taskNo) ;

	
	
		
}
